package com.wangtongxiao.beans;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class MyApp4 {
    public static void main(String[] args) {



        String temp = "难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n难受香菇\n";
        String path = "d:\\abc.txt";
        try {
            FileWriter fileWriter = new FileWriter(path,true);

            BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
            bufferedWriter.write(temp);
            bufferedWriter.flush();
            fileWriter.close();
            bufferedWriter.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }


    }

}
